import axios from "@/http/http.js";

// 封装用户注册后新增居民信息接口
export const residentInfoAddAPI = (data) => {
    return axios({
        url: '/resident/add',
        method: 'post',
        data,
        headers: { "content-type": "application/x-www-form-urlencoded" }
    })
};

// 封装用户登录后获取居民信息接口
export const residentInfoFindAPI = (params) => {
    return axios({
        url: '/resident/find',
        method: 'get',
        params
    })
};

// 封装居民信息修改接口
export const residentInfoUpdateAPI = (data) => {
    return axios({
        url: '/resident/update',
        method: 'put',
        data
    })
};